package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.DeviceVerifyRecord;
import com.zhijian.medical.entity.vo.request.DeviceVerifyRecordSearchVo;
import com.zhijian.medical.entity.vo.response.DeviceVerifyRecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceVerifyRecordMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeviceVerifyRecord record);

    int insertSelective(DeviceVerifyRecord record);

    DeviceVerifyRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DeviceVerifyRecord record);

    int updateByPrimaryKey(DeviceVerifyRecord record);

    int count(DeviceVerifyRecordSearchVo deviceVerifyRecordSearchVo);

    List<DeviceVerifyRecordVo> selectList(DeviceVerifyRecordSearchVo deviceVerifyRecordSearchVo);

    DeviceVerifyRecordVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<DeviceVerifyRecord> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @return
     */
    String selectMaxCodeByDay(String day);
}